<template>

      <div class="login"> 
        <div>
          <el-input
            class="password"
            style="width: 300px"
            placeholder="请输入新密码"
            v-model="input3"
            @input="onInput3()"
            show-password
          ></el-input>
        </div>
        <div>
          <el-input
            class="password"
            style="width: 300px"
            placeholder="请再次输入新密码"
            v-model="input4"
            @input="onInput4()"
            show-password
          ></el-input>
        </div>
        <div>
        <el-row class="buttons">
            <el-button-group style="margin-bottom:40px">
            <el-button size="large" type="primary" @click="yes">确定</el-button>
            <el-button size="large" type="primary" @click="no">取消</el-button>
            </el-button-group>
        </el-row>
        </div>
      </div>
      
</template>

<script>
export default {
    data () {
     return {
      currentDate: new Date(),
      num:0
    };
    },
  methods: {
   
    yes(){
        this.$alert('修改成功！请重新登录').then(()=>{this.$router.push({path:"/"})});
    },
    no(){
        this.$confirm("取消修改", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning",
      }).then(() => {
        this.$router.push({ path: "/waiter" });
      });
    },
     onInput2(){
     this.$forceUpdate();
    },
    onInput3(){
     this.$forceUpdate();
    },
     onInput4(){
     this.$forceUpdate();
    }
  },
};
</script>
<style scoped>
.buttons{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.el-breadcrumb{
    margin-bottom: 15px;
    font-size:15px;
}
.food{
  width: 1150px;
  height: 575px;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0);
  border-radius: 0px;
  background-color: rgba(0,0,0,0);
}
.container {
  height: 100vh;
  font-size: 15px;
}
.header {
  background: #131518;
  color: rgb(255, 255, 255);
}
.aside {
  background: #3a3a3a;
  color: #fff;
  /* height: 100%; */
}
.main {
  width: 100%;
  height: 654px;
  display: flex;
  flex-wrap: wrap;
  margin-top: -50px;
}
.headerlogo {
  line-height: 60px;
  margin-top: 10px;
}
.rightsection {
  line-height: 60px;
  text-align: center;
}
  .time {
    font-size: 13px;
    color: #999;
  }
  
  .bottom {
    margin-top: 13px;
    line-height: 12px;
  }

  .button {
    padding: 0;
    float: right;
  }

  .image {
    width: 100%;
    display: block;
  }

  .clearfix:before,
  .clearfix:after {
      display: table;
      content: "";
  }
  
  .clearfix:after {
      clear: both
  }

.login {
  position:absolute;
   top: 60%;
  left: 60%;
  transform: translate(-50%,-50%);
  width: 500px;
  height: 400px;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  border: 1px solid rgba(236, 214, 151, 0.616);
  border-radius: 20px;
  background-color: rgba(216, 202, 162, 0.514);
}
.buttons{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.login > div {
  width: 60%;
  height: 40px;
  margin-top: 10px;
  font-size: 30px;
}
</style>